Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@samvera/nectar-iiif
Advanced tools
ReactJS UI component library of IIIF Presentation API 3.0 property fluent primitives.
ReactJS UI component library of IIIF Presentation API 3.0 property fluent primitives.
Install the component from your command line using npm install
,
npm install @samvera/nectar-iiif
OR if you prefer Yarn, use yarn add
.
yarn add @samvera/nectar-iiif
Add the Nectar component(s) to your jsx
or tsx
code.
import { Label, Summary } from "@samvera/nectar-iiif";
/**
* Some logic may be required to fetch the IIIF Manifest.
*/
const manifest = {...};
return (
<>
<Label label={manifest.label} as="h1" />
<Summary summary={manifest.summary} as="p" />
</>
);
All primitives accept HTMLElement attributes.
Prop | Type | Default |
---|---|---|
className | string , undefined | undefined |
style | CSSProperties , undefined | undefined |
lang | string , undefined | undefined |
title | string , undefined | undefined |
data-* | string , undefined | undefined |
aria-* | AriaAttributes , undefined | undefined |
The value of lang
will couple with InternationalString props to output the denoted label
, value
, summary
entries. If lang is undefined, entries will default to the first entry in the array index.
Prop | Type | Default | Required |
---|---|---|---|
as | span , h1 , h2 , h3 , h4 , h5 , h6 , p , label , dt , dd | span | -- |
label | InternationalString | -- | :white_check_mark: |
import { Label } from "@samvera/nectar-iiif";
return <Label label={manifest.label} as="h1" lang="en" />;
Prop | Type | Default | Required |
---|---|---|---|
as | span , h1 , h2 , h3 , h4 , h5 , h6 , p | span | -- |
summary | InternationalString | -- | :white_check_mark: |
import { Summary } from "@samvera/nectar-iiif";
return <Summary summary={manifest.summary} as="p" />;
import { Metadata } from "@samvera/nectar-iiif";
return <Metadata metadata={manifest.metadata} />;
import { RequiredStatement } from "@samvera/nectar-iiif";
return <RequiredStatement requiredStatement={manifest.requiredStatement} />;
import { Homepage } from "@samvera/nectar-iiif";
Wrap resource label with homepage id.
return <Homepage homepage={manifest.homepage} />;
Wrap React children with homepage id.
return (
<Homepage homepage={manifest.homepage}>
<figure>...</figure>
</Homepage>
);
FAQs
React.js UI component library of IIIF Presentation API 3.0 property fluent primitives.
The npm package @samvera/nectar-iiif receives a total of 39 weekly downloads. As such, @samvera/nectar-iiif popularity was classified as not popular.
We found that @samvera/nectar-iiif demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.